package com.fire.eyes.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 渠道表
 * </p>
 *
 * @author raoyuxing123
 * @since 2018-04-28
 */
@TableName("t_mit_channel")
public class TMitChannel extends Model<TMitChannel> {

    private static final long serialVersionUID = 1L;

    /**
     * 渠道号
     */
    @TableId(value = "channelid", type = IdType.AUTO)
    private Integer channelid;
    /**
     * 渠道名称
     */
    private String channelname;
    /**
     * 渠道类型
     */
    private Integer channeltpye;
    /**
     * 渠道状态(0:关闭,1:开放,2:暂停)
     */
    private Integer channelstatus;
    /**
     * 渠道创建时间
     */
    private Date createtime;
    /**
     * 返佣比例%
     */
    private String commission;
    /**
     * 1:微信,2:支付宝,4:银联,8:银联无跳转支付
     */
    private String payway;
    /**
     * 秘钥
     */
    private String key;
    
    private String channelmark;


    public Integer getChannelid() {
        return channelid;
    }

    public void setChannelid(Integer channelid) {
        this.channelid = channelid;
    }

    public String getChannelname() {
        return channelname;
    }

    public void setChannelname(String channelname) {
        this.channelname = channelname;
    }

    public Integer getChanneltpye() {
        return channeltpye;
    }

    public void setChanneltpye(Integer channeltpye) {
        this.channeltpye = channeltpye;
    }

    public Integer getChannelstatus() {
        return channelstatus;
    }

    public void setChannelstatus(Integer channelstatus) {
        this.channelstatus = channelstatus;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getCommission() {
        return commission;
    }

    public void setCommission(String commission) {
        this.commission = commission;
    }

    public String getPayway() {
        return payway;
    }

    public void setPayway(String payway) {
        this.payway = payway;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @Override
    protected Serializable pkVal() {
        return this.channelid;
    }

    
    public String getChannelmark() {
		return channelmark;
	}

	public void setChannelmark(String channelmark) {
		this.channelmark = channelmark;
	}

	@Override
    public String toString() {
        return "TMitChannel{" +
        "channelid=" + channelid +
        ", channelname=" + channelname +
        ", channeltpye=" + channeltpye +
        ", channelstatus=" + channelstatus +
        ", createtime=" + createtime +
        ", commission=" + commission +
        ", payway=" + payway +
        ", key=" + key +
         ", channelmark=" + channelmark +
        "}";
    }
}
